<h1>Справочник типов отзывов</h1>
<div style="width: 260px">
	{if $FeedbackTypes->hasPaginate()}
		<div id="feedbacktypes_paging_top" class="paging">
			{$FeedbackTypes->showPager()}
			{literal}
				<script>
				    new Pager("feedbacktypes_paging_top");
				</script>
			{/literal}
		</div>
	{/if}<br>
	<div class="table_body">
		<table class="text">
			<tr>
				<th>Название</th>
				<th>&nbsp;</th>
			</tr>
			{foreach item=FeedbackType from=$FeedbackTypes}
			<tr>
			    <td class="mixed">{$FeedbackType->name}</td>
			    <td>
        <A 
           href="{$fvConfig->get('dir_web_root')}feedbacktypes/edit/?id={$FeedbackType->getPk()}" 
        onclick="go('{$fvConfig->get('dir_web_root')}feedbacktypes/edit/?id={$FeedbackType->getPk()}'); return false;"
        ><img src="{$fvConfig->get('dir_web_root')}img/edit_icon.png" title="редактировать" width="16" height="16"></a>
        <a
           href="javascript: void(0);" 
        onclick="if (confirm('Вы действительно желаете удалить тип отзыва?')) go('{$fvConfig->get('dir_web_root')}feedbacktypes/delete/?id={$FeedbackType->getPk()}'); return false;"
        ><img src="{$fvConfig->get('dir_web_root')}img/delete_icon.png" title="удалить" width="16" height="16"></a>
       </td>
       
			</tr>
			{/foreach}
		</table>
	</div>
	{if $FeedbackTypes->hasPaginate()}
		<div id="feedbacktypes_paging_bottom" class="paging">
			{$FeedbackTypes->showPager()}
			{literal}
				<script>
				    new Pager("feedbacktypes_paging_bottom");
				</script>
			{/literal}
		</div>
	{/if}
	<div class="operation">
	    <a href="{$fvConfig->get('dir_web_root')}feedbacktypes/edit/" onclick="go('{$fvConfig->get('dir_web_root')}feedbacktypes/edit/'); return false;" class="add">добавить</a>
	    <div style="clear: both;"></div>
	</div>
</div>